package com.liuhm.core.thread;

import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

/**
 * TrackThreadPoolTaskExecutor
 * @author liuhaomin
 * @date 2020/10/30
 */
public class TrackThreadPoolTaskExecutor extends ThreadPoolTaskExecutor {

	private static final long serialVersionUID = 2257571524183084055L;

	@Override
	public void execute(Runnable runnable) {
		super.execute(new RunnableWrapper() {
			@Override
			public void trackRun() {
				runnable.run();
			}
		});
	}
}
